package org.springframework.example.t0830.service;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.ApplicationEvent;
import org.springframework.context.PayloadApplicationEvent;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Lazy;
import org.springframework.context.annotation.Scope;
import org.springframework.context.event.EventListener;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author: baiml
 * @Title: UserService
 * @ProjectName: 中台技术平台
 * @Depart 中台研发部
 * @Description:
 * @date: 2021/8/30 14:44
 */
@Component("aaa")
public class UserService {


	class UserXx{
		@Bean
		public User user(){
			return new User();
		}
	}

	private OrderService orderService;

	public UserService() {
		System.out.println(0);
	}

	public UserService(OrderService orderService) {
		this.orderService = orderService;
		System.out.println(1);
	}

	public UserService(OrderService orderService, OrderService orderService1) {
		this.orderService = orderService;
		System.out.println(2);
	}
	public UserService(OrderService orderService, OrderService orderService1, OrderService orderService2) {
		this.orderService = orderService;
		System.out.println(3);
	}

}
